![]() | Using XpertRule as a Web Service | Deploying the Knowledge (Transaction Server) | ![]() |
To call a web service from within the runtime server use the XpertRule scripting commands to link to a custom dll, which should in turn be set to communicate with the web service.
Example
The following lines of code show how a custom dll ('CallingWebService.dll' registered as 'CallingWebService.ComInterop') can be called to access a web service. The dll has been created to access a 'whois' web service and is made available by the 'who' method of the dll.
@Dim aObj:O, aStr:S
@Assign aObj = CreateOLEobject('CallingWebService.ComInterop')
@Assign aStr = aObj.who('xpertrule.com')
@Debug aStr
A sample Visual Studio project can be supplied on request to illustrate this functionality.